package com.desmart.renjiao.membersearch;

import com.desmart.renjiao.bean.MemberInfo;
import com.lemon.library.mvp.BaseModel;
import com.lemon.library.mvp.BasePresenter;
import com.lemon.library.mvp.BaseView;

import java.util.List;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;

public interface MemberSearch {

    interface MemberSearchM extends BaseModel{

        Observable<ResponseBody> memberSearch(RequestBody string);
    }

    interface MemberSearchV extends BaseView{

        void onMemberList(List<MemberInfo> users);
    }

    abstract class MemberSearchP extends BasePresenter<MemberSearchM,MemberSearchV>{

        abstract void memberSearch(String keyword);

    }

}
